]> dgit.raspbian.org Git - gnome-shell.git/commit
status/keyboard: Fix execution order when activating source
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 19 Sep 2024 22:33:29 +0000 (00:33 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 17 Oct 2024 16:52:38 +0000 (18:52 +0200)
commitdb477fefbbc4893cf769eeceaaf7794d189da181
treefa0b234bf64c17c07d1e7535250266107b3af351
parent50fa7ef18311be504fcc72ec502206847ba3c750
status/keyboard: Fix execution order when activating source

When commit ce89b15bb123d made the code async, it did not only
delay releasing the keyboard until after the engine has been
updated, but also the following code that updates the current
input source.

One result is that the current source is now initialized later,
which breaks any code that relies on the source being set.

This affects the login screen in particular (which uses different
`InputSourceSettings` than the regular session): It fails to come
up entirely if the OSK is enabled.

To fix the issue, use a .then() callback to release the keyboard,
instead of blocking all following code with await.

Fixes: ce89b15bb1 ("ibusManager: Use async await instead of callbacks")
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7912
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3476>
(cherry picked from commit 0a3c12f8d6c21906ae5c2b0677501a2897abdd83)
js/ui/status/keyboard.js